<html>
<head>
    <link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body>
    <p>The Extract Constant refactoring creates a constant that holds the selected expression as the value and replaces its occurrences with the references to this newly created constant.
    </p>
    <p>To invoke this refactoring, select an expression to be replaced with a constant and press <span class="shortcut">&shortcut:IntroduceConstant;</span> (<span class="control">Refactor | Extract Constant</span>).
    </p>
    <p class="image"><img src="images/extract_constant_1.png"></p>
    <p>This will result in the following:</p>
    <p class="image"><img src="images/extract_constant_2.png"></p>
</body>
</html>